/**
 * \class CubeServices
 * \brief This is a user interface for services.
 * \version 0.3.2
 *
 * \author Woo-Hyun Kim (woorung@nhncorp.com, woorung@gmail.com)
 * \author http://blog.naver.com/wisereign .
 *
 * \date 2008/7/6
 */
#ifndef CubeServicesH
#define CubeServicesH
//-----------------------------------------------------------------
#include <iostream>

#include "CDiscoveryProxy.h"

using namespace std;
//--------------------------------------------------------------------------
class CubeServices
{
private:
	string host;
	int port;

public:
        CubeServices();
        CubeServices(char *host, int port);
        virtual ~CubeServices();

	int connect(char *host, int port);

	// keyval-based simple invocation
	int invoke(char *servicename, map<string,string> &in, map<string,string> &out);
};
//--------------------------------------------------------------------------
#endif
